package edu.sctu.practice.class01.wujiayi.assing03.practice02;

/**
 * Created by acer1 on 2015/10/24.
 */
public class Circle {
    public float r;
    public final float PI = (float) 3.14;
    public float circlearea;
    public float circleperimeter;


    public float findArea() {
        circlearea = PI * r * r;
        System.out.println("圆的面积为" + circlearea);
        return circlearea;
    }
    public float findPerimeter() {
        circleperimeter = 2 * r * PI;
        System.out.println("圆的周长为" + circleperimeter);

        return circleperimeter;
    }
}
